﻿using UnityEngine;
using System.Collections.Generic;

namespace UI
{
    public class UILuckCircleTemplateThree : UILuckCircleTemplateTwo
    {
        public GameObject pos2;

        public GameObject active2;

        public override void Actived(List<bool> light)
        {
            base.Actived(light);
            active2.SetActive(light[GetIndex(2)]);
        }

        public override Transform GetPlaced(int index)
        {
            var tr = base.GetPlaced(index);
            if (tr != null)
            {
                return tr;
            }
            else
            {
                if (index == 2) return pos2.transform;
            }

            return null;
        }

        protected override void SortIndices()
        {
            indices[0] = 0;
            indices[1] = 2;
            indices[2] = 1;
        }
    }
}